package File.work;

import java.io.File;
import java.io.IOException;
import java.util.Scanner;

public class test05 {
    public static void main(String[] args) throws IOException {
        Scanner s=new Scanner(System.in);
        while (true){
            String str=s.nextLine();
            File file=new File("./"+str);
            if (file.exists()){
                System.out.println("已存在请重新输入");
            }else{
                file.createNewFile();
                System.out.println("已成功创建");
                break;
            }
        }
    }
}
